﻿using _1_Interfaces.Interfaces.Cjw;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace _3_Controllers.Controllers.Cjw
{
    /// <summary>
    /// 统计每天每个科室的出入科数量服务
    /// </summary>
    [Route("api/[controller]/[action]")]
    [ApiController]
    public class CjwInOutListController : ControllerBase
    {
        private IInOutListService _iInOutListService;
        public CjwInOutListController(IInOutListService iInOutListService)
        {
            _iInOutListService = iInOutListService;
        }
        /// <summary>
        /// 插入出入科记录
        /// </summary>
        /// <param name="departmentId">科室id</param>
        /// <param name="inOut">1入科 2出科</param>
        /// <returns></returns>
        [HttpGet]
        public bool AddInOut(int departmentId, int inOut)
        {
            return _iInOutListService.AddInOut(departmentId, inOut);
        }
    }
}
